

package com.hazelcast.internal.partition.impl;

import com.hazelcast.internal.partition.PartitionEventListener;
import com.hazelcast.partition.PartitionLostEvent;
import com.hazelcast.partition.PartitionLostListener;

class PartitionLostListenerAdapter implements PartitionEventListener<PartitionLostEvent> {

    private final PartitionLostListener listener;

    PartitionLostListenerAdapter(PartitionLostListener listener) {
        this.listener = listener;
    }

    @Override
    public void onEvent(PartitionLostEvent event) {
        listener.partitionLost(event);
    }

}
